#include <iostream>
#include <stdio.h>
#include <conio.h>
using namespace std;

int main()
{
   int x,y;
   cout <<" enter the number by X:";
   cin>> x;
   cout <<" enter the number by Y:";
   cin>> y;     
    if ( x>0&y>0)
    {cout<<"1 quarter";}
    else
    if (x<0&y>0)
    {cout<<"2 quarter";}
    else
    if (x<0&y<0)
    {cout<<"3 quarter";}
    else
    if (x>0&y<0)
    {cout<<"4 quarter";}
    getch();

    return 0;
}
